<div class="modal-header">
    <h4 class="modal-title">{{::vm.title}}</h4>
</div>
<div class="modal-body">
    <p>需设置权限的用户列表</p>
    <table class="table table-hover">
        <thead>
            <tr>
                <th style="width:50px;"></th>
                <th>用户名</th>
                <th>用户编码</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="user in vm.tabledata" ng-click="vm.checked(user)">
                <td><input ng-model="user.checked" type="checkbox"></td>
                <td>{{::user.userName}}</td>
                <td>{{::user.userCode}}</td>
            </tr>
            <tr ng-show="vm.tabledata.length==0">
                <td colspan="3">没有可共享的用户</td>
            </tr>
        </tbody>
    </table>
    <div class="loading" style="margin: 0 auto" ng-show="vm.loading"></div>
    <div class="pagination-group">
          <ui-pagination-info items-per-page="10" items-per-page-select="false" total-items="vm.page.totalItems" current-page="vm.page.currentPage"></ui-pagination-info>
        <button type="button" ng-click="vm.getList()" class="btn btn-default btn-refresh"><i class="fa fa-refresh"></i></button>
        <ui-pagination items-per-page="10" total-items="vm.page.totalItems" ng-model="vm.page.currentPage" ng-change="vm.getList()"></ui-pagination>
    </div>
   
</div>
<div class="modal-footer">
     <button class="btn btn-primary" type="button" ng-click="vm.ok()">确定</button>
    <button class="btn btn-default margin-left-10" type="button" ng-click="vm.cancel()">取消</button>
</div>

